#import <Cocoa/Cocoa.h>
#import <Foundation/NSArray.h>
#import <AppKit/NSTableView.h>

@interface TagSourceController : NSObject {
	
	NSMutableArray *sourceTags;
	NSMutableArray *targetTags;
	
	IBOutlet NSTableView *sourceTagView;
	IBOutlet NSTableView *targetTagView;
}

- (void) addSourceTag: (NSString *) theString;

- (int)numberOfTags;

- (void)awakeFromNib;

- (IBAction)buttonPressed: (id)aSender;

- (int)numberOfRowsInTableView:(NSTableView *)aTableView;

- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;

- (void)tableView:(NSTableView *)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;


- (BOOL)tableView:(NSTableView *)tv writeRowsWithIndexes:(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard*)pboard;

- (NSDragOperation)tableView:(NSTableView*)tv validateDrop:(id <NSDraggingInfo>)info proposedRow:(int)row proposedDropOperation:(NSTableViewDropOperation)op;


- (BOOL)tableView:(NSTableView *)aTableView acceptDrop:(id <NSDraggingInfo>)info
			  row:(int)row dropOperation:(NSTableViewDropOperation)operation;

- (NSMutableArray*) returnTargetTags;


@end


